package com.ddwl.schema.bo.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * 用户重置密码入参
 */
@ApiModel(description = "重置密码")
@Setter
@Getter
public class ResetPwdBo {

    @NotNull(message = "手机号不能为空")
    @Pattern(regexp = "^(\\s{0})|(1\\d{10})", message = "手机号码格式错误")
    @ApiModelProperty("手机号")
    private String mobile;

    @NotNull(message = "请填写新密码")
    @ApiModelProperty("新密码")
    private String newPwd;

    @NotNull(message = "重置密码秘钥不能为空")
    @ApiModelProperty("重置密码秘钥")
    private String resetToken;
    @ApiModelProperty(value = "产品",hidden = true)
    private String  product;
}
